﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Pediy_Login : Form
    {
        public Pediy_Login()
        {
            InitializeComponent();
        }

        private void button_close_Click(object sender, EventArgs e)
        {

            //MessageBox.Show(this.textBox_UserName.Text);

            //MessageBox.Show("退出按钮响应！！！", "tips!");
            Close();
        }

        private void button_login_Click(object sender, EventArgs e)
        {
            //this.textBox_UserName.Text = "admin";
            if (0 == this.textBox_UserName.Text.Length)
            {
                MessageBox.Show("请输入用户名！！！", "tips");
                return;
            }
            if (0 == this.textBox_Password.Text.Length)
            {
                MessageBox.Show("请输入密码！！！", "tips");
                return;
            }

            //System.Text.RegularExpressions.Match()
            //this.textBox_Password.


            MessageBox.Show("登陆按钮响应！！！", "tips!");
        }

        private void button_logout_Click(object sender, EventArgs e)
        {
            MessageBox.Show("注销按钮响应！！！", "tips!");
        }

        private void groupBox_baseInfo_Enter(object sender, EventArgs e)
        {

        }
    }
}
